<% #endcoding:utf-8 %>
<div class="container">
    <div class="panel">
      <div class="panel-heading">
        <h3>注 册</h3>
      </div>
      <div class="panel-body">
        <div class="row">
          <div class="col-md-6 col-md-offset-3">
            <div class="panel-info"><%=raw alert('danger',flash[:danger])%></div>
        <%= form_for @member, :html => {:multipart => true}  do |f| %>
            <div class="form-group">
              <%= f.label :类型%>
              <%= f.select :user_type,{"企业"=>true,"咨询师"=>false},{},{:class=>"form-control"} %>
            </div>
            <div class="form-group">
              <%= f.label :用户名 %>
              <%= f.text_field :name ,:class=>"form-control" %>
            </div>
            <div class="form-group">
              <%= f.label :邮箱 %>
              <%= f.text_field :email,:class=>"form-control" %>
            </div>
            <div class="form-group">
              <%= f.label :密码 %>
              <%= f.password_field :password,:class=>"form-control" %>
            </div>
            <div class="form-group">
              <%= f.label :确认密码%>
              <%= f.password_field :password_confirmation,:class=>"form-control" %>
            </div>
            <%= f.submit "注册", class: "btn btn-primary" %> 已经有账号？<%=link_to "登录",login_path%>
        <% end %>
            </div>
          </div>
    </div>
  </div>

</div>



